package com.linkhub.oms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.linkhub.oms.common.enums.logistic.LogisticEditStatusEnum;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.FieldNameConstants;

/**
 * <p>
 * 物流渠道表
 * </p>
 * @author Jaycle
 * @version 1.0.0
 * @Description LogisticEntity.java
 * @createTime 2024/04/29 23:05
 */

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_logistics_channel")
@ApiModel(value="LogisticEntity对象", description="物流渠道表")
@FieldNameConstants
public class LogisticEntity implements Serializable {
    @ApiModelProperty(value = "主键")
    @TableId(value = "Fid", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "物流名称")
    @TableField("Flogistics_name")
    private String logisticsName;

    @ApiModelProperty(value = "渠道编码")
    @TableField("Fchannel_code")
    private String channelCode;

    @ApiModelProperty(value = "渠道中文名称")
    @TableField("Fchannel_c_name")
    private String channelCName;

    @ApiModelProperty(value = "渠道英文名称")
    @TableField("Fchannel_e_name")
    private String channelEName;

    @ApiModelProperty(value = "参考时效")
    @TableField("Freference_aging")
    private String referenceAging;

    @ApiModelProperty(value = "走货中文属性")
    @TableField("Fmoving_c_attribute")
    private String movingCAttribute;

    @ApiModelProperty(value = "走货英文属性")
    @TableField("Fmoving_e_attribute")
    private String movingEAttribute;

    @ApiModelProperty(value = "支持区域中文")
    @TableField("Fsupport_c_region")
    private String supportCRegion;

    @ApiModelProperty(value = "支持区域英文")
    @TableField("Fsupport_e_region")
    private String supportERegion;

    @ApiModelProperty(value = "开始停用时间，format：yyyy-MM-dd")
    @TableField("Fstart_down_time")
    private LocalDate startDownTime;

    @ApiModelProperty(value = "结束停用时间，format：yyyy-MM-dd")
    @TableField("Fend_down_time")
    private LocalDate  endDownTime;

    @ApiModelProperty(value = "启用状态：0-停用中；1-启用中")
    @TableField("Fchannel_state")
    private LogisticEditStatusEnum channelState;

    @ApiModelProperty(value = "创建时间")
    @TableField("Fcreated_time")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("Fupdate_time")
    private LocalDateTime updateTime;
}
